package com.shinaier.laundry.snlstore.network.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by 张家洛 on 2017/11/6.
 */

public class AssessSuccessEntities {
    @SerializedName("retcode")
    private int retcode;
    @SerializedName("status")
    private String status;
    @SerializedName("data")
    private SettingSuccess datas;

    public int getRetcode() {
        return retcode;
    }

    public void setRetcode(int retcode) {
        this.retcode = retcode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public SettingSuccess getDatas() {
        return datas;
    }

    public void setDatas(SettingSuccess datas) {
        this.datas = datas;
    }

    public static class SettingSuccess implements Parcelable {
        @SerializedName("id")
        private String id;
        @SerializedName("orderid")
        private String orderId;
        @SerializedName("color")
        private String color;
        @SerializedName("color_text")
        private String colorText;
        @SerializedName("item_note")
        private String itemNote;
        @SerializedName("assess")
        private String assess;
        @SerializedName("assess_text")
        private String assessText;

        protected SettingSuccess(Parcel in) {
            id = in.readString();
            orderId = in.readString();
            color = in.readString();
            colorText = in.readString();
            itemNote = in.readString();
            assess = in.readString();
            assessText = in.readString();
        }

        public static final Creator<SettingSuccess> CREATOR = new Creator<SettingSuccess>() {
            @Override
            public SettingSuccess createFromParcel(Parcel in) {
                return new SettingSuccess(in);
            }

            @Override
            public SettingSuccess[] newArray(int size) {
                return new SettingSuccess[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }

        public String getColorText() {
            return colorText;
        }

        public void setColorText(String colorText) {
            this.colorText = colorText;
        }

        public String getItemNote() {
            return itemNote;
        }

        public void setItemNote(String itemNote) {
            this.itemNote = itemNote;
        }

        public String getAssess() {
            return assess;
        }

        public void setAssess(String assess) {
            this.assess = assess;
        }

        public String getAssessText() {
            return assessText;
        }

        public void setAssessText(String assessText) {
            this.assessText = assessText;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeString(orderId);
            dest.writeString(color);
            dest.writeString(colorText);
            dest.writeString(itemNote);
            dest.writeString(assess);
            dest.writeString(assessText);
        }
    }
}
